@<template>
  <div><div class="box">
        <div class="PhotoBox">
            <div class="img" >
                <div>
                    <h1 >海绵宝宝</h1>
                    <span style="margin-left:-6px;">海绵宝宝是方块形的黄色海绵，住在比基尼海滩的一个菠萝里</span>
                    <el-rate  style="margin-top:36px;margin-left:2px;"
  v-model="value"
  disabled
  show-score
  text-color="#ff9900"
  score-template="{value}">
</el-rate>   
<el-row>
    <el-button type="success" round style="margin-top:66px;margin-left:6px">点击播放</el-button>
</el-row>
                </div>
                 <img :src="background"  width="1370px" height="680px" style=" margin-left:-546px; ">
            </div>
                   <div class="img" >
                <div>
                    <h1 >间谍过家家</h1>
                    <span style="margin-left:-6px;"> 电视动画《间谍×过家家》为了潜入名校，西国能力最强的间谍</span>
                    <el-rate  style="margin-top:36px;margin-left:2px;"
  v-model="value2"
  disabled
  show-score
  text-color="#ff9900"
  score-template="{value}">
</el-rate>   
<el-row>
    <el-button type="success" round style="margin-top:66px;margin-left:6px">点击播放</el-button>
</el-row>
                </div>
                 <img :src="background1"  width="1370px" height="680px" style=" margin-left:-546px; ">
            </div>
                    <div class="img" >
                <div>
                    <h1 >盾之勇者成名录</h1>
                    <span style="margin-left:-6px;">普普通通的大学生——岩谷尚文受到召唤来到异世界，成为了四圣勇者之一——“盾之勇者”。</span>
                    <el-rate  style="margin-top:36px;margin-left:2px;"
  v-model="value3"
  disabled
  show-score
  text-color="#ff9900"
  score-template="{value}">
</el-rate>   
<el-row>
    <el-button type="success" round style="margin-top:66px;margin-left:6px">点击播放</el-button>
</el-row>
                </div>
                 <img :src="background2"  width="1370px" height="680px" style=" margin-left:-546px; ">
            </div>
                   <div class="img" >
                <div>
                    <h1 >新世纪福音战士</h1>
                    <span style="margin-left:-6px;">突袭世界的大灾难“第二次冲击”后，世界在废墟之上重建。</span>
                    <el-rate  style="margin-top:36px;margin-left:2px;"
  v-model="value4"
  disabled
  show-score
  text-color="#ff9900"
  score-template="{value}">
</el-rate>   
<el-row>
    <el-button type="success" round style="margin-top:66px;margin-left:6px">点击播放</el-button>
</el-row>
                </div>
                 <img :src="background3"  width="1370px" height="680px" style=" margin-left:-546px; ">
            </div>
                   <div class="img" >
                <div>
                    <h1 >辉夜大小姐的告白</h1>
                    <span style="margin-left:-6px;">讲述了学生会副会长四宫辉夜之间的爱情喜剧</span>
                    <el-rate  style="margin-top:36px;margin-left:2px;"
  v-model="value5"
  disabled
  show-score
  text-color="#ff9900"
  score-template="{value}">
</el-rate>   
<el-row>
    <el-button type="success" round style="margin-top:66px;margin-left:6px">点击播放</el-button>
</el-row>
                </div>
                 <img :src="background4"  width="1370px" height="680px" style=" margin-left:-546px; ">
            </div>
                   <div class="img" >
                <div>
                    <h1 >更衣人偶坠入爱河</h1>
                    <span style="margin-left:-6px;">高中生五条新菜喜爱cosplay的JK喜多川海梦的校园恋爱剧。</span>
                    <el-rate  style="margin-top:36px;margin-left:2px;"
  v-model="value6"
  disabled
  show-score
  text-color="#ff9900"
  score-template="{value}">
</el-rate>   
<el-row>
    <el-button type="success" round style="margin-top:66px;margin-left:6px">点击播放</el-button>
</el-row>
                </div>
                 <img :src="background5"  width="1370px" height="680px" style=" margin-left:-546px; ">
            </div>
                   <div class="img" >
                <div>
                    <h1 >海贼王</h1>
                    <span style="margin-left:-16px;">成为一名出色的海盗。为了达成这个目标，路飞踏上艰苦的旅程</span>
                    <el-rate  style="margin-top:36px;margin-left:2px;"
  v-model="value6"
  disabled
  show-score
  text-color="#ff9900"
  score-template="{value}">
</el-rate>   
<el-row>
    <el-button type="success" round style="margin-top:66px;margin-left:6px">点击播放</el-button>
</el-row>
                </div>
                 <img :src="background6"  width="1370px" height="680px" style=" margin-left:-546px; ">
            </div>
        </div>
    </div>
    <div class="box">
        <div class="table">
            <div class="boxbtn boxbtnHover">
                <img src="https://i2.hdslb.com/bfs/archive/3e2e1e0b3c1108b83148bd2f51b3d28fc94c3b63.jpg@672w_378h_1c.webp" alt="">
                <span>
                    <img src="../assets/lunbo/bofang.png" alt="" width="40px" height="40px" style="margin-top:40px;margin-left:55px;">
                    <div style="font-size:16px;margin-left:50px;"></div>
                </span>
            </div>
            <div class="boxbtn ">
                <img src="https://i0.hdslb.com/bfs/archive/1d673f044c6739d770bac2f434420af2af367630.jpg@672w_378h_1c.webp" alt="">
                <span>
                    <img src="../assets/lunbo/bofang.png" alt="" width="40px" height="40px" style="margin-top:40px;margin-left:55px;">
                    <div style="font-size:16px;margin-left:50px;"></div>
                </span>
            </div>
            <div class="boxbtn ">
                <img src="	https://i0.hdslb.com/bfs/archive/2a29b92e71ae863804d9c6a6081c1383a15e16f5.jpg@320w_200h.webp" alt="">
                <span>
                    <img src="../assets/lunbo/bofang.png" alt="" width="40px" height="40px" style="margin-top:40px;margin-left:55px;">
                    <div style="font-size:16px;margin-left:50px;"></div>
                </span>
            </div>
            <div class="boxbtn ">
                <img src="	https://i0.hdslb.com/bfs/archive/50a78d8a16c350338554e03c32d22d494b2585df.jpg@672w_378h_1c.webp" alt="">
                <span>
                    <img src="../assets/lunbo/bofang.png" alt="" width="40px" height="40px" style="margin-top:40px;margin-left:55px;">
                    <div style="font-size:16px;margin-left:50px;"></div>
                </span>
            </div>
            <div class="boxbtn ">
                <img src="https://i1.hdslb.com/bfs/archive/59a0430590193da48fc65fe299e7d7592e869da5.jpg@672w_378h_1c.webp" alt="">
                <span>
                    <img src="../assets/lunbo/bofang.png" alt="" width="40px" height="40px" style="margin-top:40px;margin-left:55px;">
                    <div style="font-size:16px;margin-left:50px;"></div>
                </span>
            </div>
            <div class="boxbtn ">
                <img src="https://i0.hdslb.com/bfs/archive/7f548ea306bd672b51c3ad67eacb6ce51d1d4965.jpg@672w_378h_1c.webp" alt="">
                <span>
                    <img src="../assets/lunbo/bofang.png" alt="" width="40px" height="40px" style="margin-top:40px;margin-left:55px;">
                    <div style="font-size:16px;margin-left:50px;"></div>
                </span>
            </div>
            <div class="boxbtn ">
                <img src="	https://i1.hdslb.com/bfs/archive/a7f72e617549404d88530f04d0df589a8161a0b9.jpg@672w_378h_1c.webp" alt="">
                <span>
                    <img src="../assets/lunbo/bofang.png" alt="" width="40px" height="40px" style="margin-top:40px;margin-left:55px;">
                    <div style="font-size:16px;margin-left:50px;"></div>
                </span>
            </div>
          
        </div>
     
    </div></div>
</template>

<script>
export default {
data() {
    return {
            // background:require("../assets/lunbo/1.png"),
            background6:("http://pic.qianye88.com/4kdongman103566d9-426e-3d9d-9c91-b0e9a688b93c.jpg"),
    background1:("https://images7.alphacoders.com/122/thumb-1920-1229914.jpg"),
      background2:("https://images5.alphacoders.com/988/thumb-1920-988943.jpg"),
    background3:("https://images7.alphacoders.com/722/thumb-1920-722394.png"),
    background4:("https://images3.alphacoders.com/100/thumb-1920-1003547.png"),
    background5:("https://images6.alphacoders.com/122/thumb-1920-1223949.jpg"),
    background:("	https://images.alphacoders.com/114/thumb-1920-1141525.jpg"),
 value: 3.7,
 value2:4.0,
 value3:3.4,
 value4:3.6,
 value5:4.0,
 value6:5.0,

    }
},
mounted() {
      var boxbtn = document.querySelectorAll('.table > div');
        var img = document.getElementsByClassName("img");
        for (var i = 0; i < boxbtn.length; i++) {
            var point = boxbtn[i];
            point.index = i;
            point.onmouseover = function () {
                for (var j = 0; j < boxbtn.length; j++) {
                    boxbtn[j].className = "boxbtn";
                    img[j].style.display = "none";
                }
                boxbtn[this.index].className = "boxbtn boxbtnHover";
                img[this.index].style.display = "flex";
            }
        }
  },
}
</script>

<style lang='less'>
.box {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .PhotoBox {
            //  border: 1px solid rgb(24, 70, 197);
            width: 1370px;
            height: 680px;
            position: relative;
           
            // background-image: url(../assets/lunbo/1.png);
            // background-size: 1370px 680px;
        }

        .img {
            position: absolute;
            top: 0px;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            display: flex;
            justify-content: flex-start;
            align-items: flex-end;
            animation: imgAnimation .4s ease-out;
            display: none;
           
        }

        .img:first-child {
            display: flex;
        }

        @keyframes imgAnimation {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .img>div {
            margin-left: 80px;
            z-index: 999;
            color: var(--TextColor);
            height: 200px;
            margin-bottom: 200px;
            display: flex;
            flex-direction: column;
        }

        .img>div>h1 {
            font-size: 40px;
            margin-top: -120px;
            // animation: h1Animation .4s ease-out;
        }
        .img>div>{
            font-size: 40px;
            animation: h1Animation .4s ease-out;
        }

        @keyframes h1Animation {
            from {
                transform: translateY(50px);
                opacity: 0;
            }

            to {
                transform: translateY(0px);
                opacity: 1;
            }
        }

        .img>div>span {
            padding-left:10px;
            font-size: 17px;
            animation: h1Animation .7s ease-out;
        }

        .table {
            width: 1360px;
            height: 130px;
            margin-top: -130px;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: row;
        }

        .boxbtn {
            width: 190px;
            height: 90%;
            position: relative;
            border: 4px solid none;
            box-sizing: border-box;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            padding-left: -20px;
            padding-bottom: 0px;
            color:var(--TextColor);
            overflow: hidden;
            user-select: none;
            margin: 0 5px;
        }

        .boxbtn>* {
            transition: all .2s ease-out;
        }
      
        .boxbtn>span {
            z-index: 999;
            transform: translateY(-5px);
            margin-left: -30px;
            opacity: 0;
        }

        .boxbtn>img {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0px;
            left: 0px;
            transform: scale(1.2);
        }

        .boxbtnHover {
            border: 4px solid rgb(209, 240, 153);
            cursor: pointer;
        }

        .boxbtnHover>span {
            margin-left: 12px;
            opacity: 1;
        }

        .boxbtnHover>img {
            margin-left: 0px;
            transform: scale(1);
        }

</style>